<h1>Listing patient_insurances</h1>

<table>
  <thead>
    <tr>
      <th>Insurance number</th>
      <th>Patient</th>
      <th>Insurance company</th>
      <th>Created by</th>
      <th>Updated by</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @patient_insurances.each do |patient_insurance| %>
      <tr>
        <td><%= patient_insurance.insurance_number %></td>
        <td><%= patient_insurance.patient_id %></td>
        <td><%= patient_insurance.insurance_company_id %></td>
        <td><%= patient_insurance.created_by %></td>
        <td><%= patient_insurance.updated_by %></td>
        <td><%= link_to 'Show', patient_insurance %></td>
        <td><%= link_to 'Edit', edit_patient_insurance_path(patient_insurance) %></td>
        <td><%= link_to 'Destroy', patient_insurance, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Patient insurance', new_patient_insurance_path %>
